package Model;

public class User {

    private Integer id;
    private String username;
    private String password;
    private String contactInfo;
    private Double balance;
    private Integer isFrozen;

    // 默认构造函数
    public User() {}

    public User(Integer id, String username, String password, String contactInfo, Double balance, Integer isFrozen) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.contactInfo = contactInfo;
        this.balance = balance;
        this.isFrozen = isFrozen;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getContactInfo() {
        return contactInfo;
    }

    public void setContactInfo(String contactInfo) {
        this.contactInfo = contactInfo;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    public Integer isFrozen() {
        return isFrozen;
    }

    public void setFrozen(Integer frozen) {
        isFrozen = frozen;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", contactInfo='" + contactInfo + '\'' +
                ", balance=" + balance +
                ", isFrozen=" + isFrozen +
                '}';
    }
}
